import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import router from './router/index'
import store from './store/index'
import * as echarts from 'echarts'
import './assets/css/global.css'
// 引入主题
import './assets/lib/theme/chalk'
import './assets/lib/theme/vintage'


// websocket
import SocketService from './utils/socket_service'
SocketService.Instence.connect() // 连接ws服务器
// 挂载原型对象 this.$socket
Vue.prototype.$socket = SocketService.Instence


Vue.config.productionTip = false
Vue.prototype.$echarts = echarts

axios.defaults.baseURL = 'http://127.0.0.1:8888/api/'
Vue.prototype.$http = axios




new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
